package com.manlost.biz.tag.query;

import java.util.List;

import com.manlost.biz.common.query.ListQuery;
import com.manlost.biz.tag.model.constants.TagInfoStatus;

/**
 * 类ListTagQuert.java的实现描述：TODO 类实现描述
 * 
 * @author xiaochuan.luxc 2012-4-3 下午2:24:13
 */
public class ListTagQuery extends ListQuery {

    private static final long serialVersionUID = 6106028462833193322L;

    private List<Long>        tagIds;
    private Long              tagGroupId;
    private String            status;

    public ListTagQuery() {
    }

    public ListTagQuery(Long tagGroupId) {
        this.tagGroupId = tagGroupId;
    }

    public ListTagQuery(TagInfoStatus status) {
        this.status = status.getValue();
    }

    public ListTagQuery(String status) {
        this.status = status;
    }

    public ListTagQuery(Long tagGroupId, String status) {
        this.tagGroupId = tagGroupId;
        this.status = status;
    }

    public ListTagQuery(Long tagGroupId, TagInfoStatus status) {
        this.tagGroupId = tagGroupId;
        this.status = status.getValue();
    }

    @Override
    public boolean validate() {
        return true;
    }

    /**
     * @return the tagGroupId
     */
    public Long getTagGroupId() {
        return tagGroupId;
    }

    /**
     * @param tagGroupId the tagGroupId to set
     */
    public void setTagGroupId(Long tagGroupId) {
        this.tagGroupId = tagGroupId;
    }

    /**
     * @return the status
     */
    public String getStatus() {
        return status;
    }

    /**
     * @param status the status to set
     */
    public void setStatus(String status) {
        this.status = status;
    }

    public void setStatus(TagInfoStatus status) {
        this.status = status.getValue();
    }

    /**
     * @return the tagIds
     */
    public List<Long> getTagIds() {
        return tagIds;
    }

    /**
     * @param tagIds the tagIds to set
     */
    public void setTagIds(List<Long> tagIds) {
        this.tagIds = tagIds;
    }

}
